OLE.RemoveLicense Function

Syntax

Result_Flag as L = RemoveLicense(C ProgID)

Arguments

Result_Flag

Returns TRUE if the programmatic identifier had a license key.

ProgID

The software's programmatic identifier. See OLE Automation Object Browser.

Description

Remove a license key for an ActiveX control previously stored using AddLicense.

Discussion

The OLE.RemoveLicense() method removes a programmatic identifier (ProgID) and its associated license key from the global cache.

Example

? ole.addlicense("a", "lic1")
= .T.
? ole.getlicense("a")
= "lic1"
? ole.loaddeveloperlicense("b")
ERROR: OLE: No license found for 'b'
? ole.removelicense("a")
= .T.
? ole.getlicense("a")
ERROR: OLE: No license found for 'a'

See Also